﻿using PlutoStudio.Web.Api.ProxyScripting.Configuration;
using PlutoStudio.Web.Security.AntiForgery;
using System;
using System.Collections.Generic;
using System.Text;

namespace PlutoStudio.Web.Configuration
{
    internal class WebCommonModuleConfiguration : IWebCommonModuleConfiguration
    {
        public bool SendAllExceptionsToClients { get; set; }

        public IApiProxyScriptingConfiguration ApiProxyScripting { get; }

        public IAntiForgeryConfiguration AntiForgery { get; }

        public IWebEmbeddedResourcesConfiguration EmbeddedResources { get; }

        public WebCommonModuleConfiguration(
            IApiProxyScriptingConfiguration apiProxyScripting,
            IAntiForgeryConfiguration abpAntiForgery,
            IWebEmbeddedResourcesConfiguration embeddedResources)
        {
            ApiProxyScripting = apiProxyScripting;
            AntiForgery = abpAntiForgery;
            EmbeddedResources = embeddedResources;
        }
    }
}
